//import Toast from '@vant/weapp/toast/toast';
Component({
  properties: {
    gid: {
      type:String,
      value:''
    },
    data: {
      type:Object,
      value:{price:0,delPrice:0}
    }
  },
  options: {
    addGlobalClass: true,
  },
  data: {
  },
  methods: {
    toDetail(e) {
      //console.log('toDetail:',e);
      wx.navigateTo({url: '/pages/goods/detail/index?id='+this.properties.data.id});
    },
    addCart(e) {
      //console.log('addCart:',e);
      //Toast.success('加入购物车');
      wx.showToast({
        title: '加入购物车',
      })
    },
  }
})
